package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import javax.swing.text.StyledEditorKit;

@Mapper
public interface LoginMapper extends BaseMapper<User> {

    @Select("select user_id from user_info where username=#{username} and password=#{pwd}")
    public Integer getId(String username,String pwd);
    @Select("select user_id from user_info where username=#{username}")
    public Integer checkUsername(String username);

}
